home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F38118_testPow.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-16  |  814 b   |  24 lines

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
  2.  
  3.   <xsl:import href="pow.xsl"/> 
  4.  
  5.   <xsl:output method="text"/>
  6.   
  7.   <xsl:template match="/">
  8.     <xsl:for-each select="(document('')//node())[position() < 10]">
  9.         <xsl:value-of select="concat(position(), '^', position(),' = ')"/>
  10.         <xsl:call-template name="pow">
  11.           <xsl:with-param name="pTimes" select="position()"/>
  12.           <xsl:with-param name="pX" select="position()"/>
  13.         </xsl:call-template>
  14.         <xsl:text> </xsl:text>
  15.     </xsl:for-each>
  16.  
  17.         <xsl:call-template name="pow">
  18.           <xsl:with-param name="pTimes" select="5000"/>
  19.           <xsl:with-param name="pX" select="1.0002"/>
  20.         </xsl:call-template>
  21.       <xsl:message>The End</xsl:message>
  22.   </xsl:template>
  23.  
  24. </xsl:stylesheet>